- getFontWithSize
HipFont getFontWithSize(uint size)
Undocumented in source. Be warned that the author may not have intended to support it.
- getKerning
int getKerning(dchar current, dchar next)
Undocumented in source. Be warned that the author may not have intended to support it.
- getKerning
int getKerning(const(HipFontChar)* current, const(HipFontChar)* next)
Undocumented in source. Be warned that the author may not have intended to support it.
- loadFromMemory
bool loadFromMemory(ubyte[] data)
This will cause a full load of the .ttf file, image generation and GPU upload. Should only be used
If you don't care about async
- loadTexture
bool loadTexture(ubyte[] rawImage)
Undocumented in source. Be warned that the author may not have intended to support it.
- partialLoad
bool partialLoad(ubyte[] data, ubyte[] rawImage)
Undocumented in source. Be warned that the author may not have intended to support it.
- getKerning
int getKerning(dchar current, dchar next)
Undocumented in source.
- getKerning
int getKerning(const(HipFontChar)* current, const(HipFontChar)* next)
Undocumented in source.
- _texture
IHipTexture _texture;
- _characters
HipFontChar[dchar] _characters;
Undocumented in source.
- _spaceWidth
uint _spaceWidth;
Saves the space width for the bitmap text process the ' '. If the original spaceWidth is == 0, it won't draw a quad
- _lineBreakHeight
uint _lineBreakHeight;
How much the line break will offset in Y the next char
- characters
HipFontChar[dchar] characters()
- characters
const(HipFontChar[dchar]) characters()
Undocumented in source. Be warned that the author may not have intended to support it.
- texture
IHipTexture texture()
Undocumented in source. Be warned that the author may not have intended to support it.
- spaceWidth
uint spaceWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- spaceWidth
uint spaceWidth(uint newWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
- lineBreakHeight
uint lineBreakHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
- lineBreakHeight
uint lineBreakHeight(uint newHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
- wordWrapRange
HipWordWrapRange wordWrapRange(dstring text, int maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
- calculateTextBounds
void calculateTextBounds(dstring text, uint[] linesWidths, int biggestWidth, int height, int maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
- getFontWithSize
HipFont getFontWithSize(uint size)
Undocumented in source.